﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Admin.Core.Entities;

namespace ZhonTai.Industry.Domain.ReworkDefectRecord
{
    /// <summary>
    /// 产品缺陷记录
    /// </summary>
    [Table(Name = "prd_rework_defect_record")]
    public class ReworkDefectRecordEntity : EntityBase
    {
        /// <summary>
        /// 产品编码
        /// </summary>
        public string? ProductCode { get; set; }

        /// <summary>
        /// 缺陷代号
        /// </summary>
        public string? DefectCode { get; set; }

        /// <summary>
        /// 不合格工位
        /// </summary>
        public long FirstStationId { get; set; }

        /// <summary>
        /// 不合格工站名称
        /// </summary>
        public string? FristStationCode { get; set; }

        /// <summary>
        /// 返修上线工位
        /// </summary>
        public long ReworStationId { get; set; }

        /// <summary>
        /// 当前状态
        /// </summary>
        /// <remarks>1：待返修；2：已上线</remarks>
        public int CurrentStatus { get; set; }

        /// <summary>
        /// 不合格时间
        /// </summary>
        public DateTime DetectionDate { get; set; }

        /// <summary>
        /// 返修上线时间
        /// </summary>
        public DateTime ReworkEndDate { get; set; }
    }
}